package hell.p2p.base;

import javafx.util.Pair;

import java.io.IOException;
import java.net.InetAddress;
import java.util.ArrayList;

class main {
    static ArrayList<Pair<InetAddress,Status>> brothers = new ArrayList<Pair<InetAddress, Status>>(0);

    static InetAddress myLord=null;

    public static void main(String args[]) throws IOException {
        /*UDPServer server = new UDPServer(667,"S1","localhost");
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
        String tmp="";

        while (true) {


             tmp = read.readLine();
            if(tmp.compareTo("exit")==0){

                break;

            } else{
                //System.out.println(".");
                try {

                    server.Send(new Messgram(InetAddress.getByName(tmp),new byte[]{8,8,8}));

                } catch (UnknownHostException e){

                    System.out.println("unknown host");

                }
            }

         }

                  */

        TCPServer srv= new TCPServer(666);
        srv.init();

        //server.stop();
    }
}
